/*
 * DBHelper.h
 *
 *  Created on: Jan 23, 2012
 *      Author: hduser
 */

#ifndef DBHELPER_H_
#define DBHELPER_H_

#include "mysql_connection.h"
#include "mysql_driver.h"

#include <cppconn/driver.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>


namespace database {

class DBHelper {
public:
	DBHelper();
	virtual ~DBHelper();
	int logErrorToDB(char* host, char* clientip, char* serverip, char* location, char* errormsg, char* note);



	sql::Connection* con;

};

}

#endif /* DBHELPER_H_ */
